﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;

namespace Loja.UserControls
{
    public partial class Cliente : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

            if (Request.Cookies["cliente"] != null && (!String.IsNullOrEmpty(Request.Cookies["cliente"].Values["nome"])))
            {
                Hello.Text = @"Olá " + Request.Cookies["cliente"].Values["nome"] + ", seja bem-vindo";
            }
            else
            {
                FormsAuthentication.RedirectToLoginPage();
            }
        }
    }
}